package main

import (
	"bufio"
	"fmt"
	"log"
	"os"
)

func main() {
	fileName := "/tmp/README.md"
	//bytes, err := ioutil.ReadFile(fileName)
	//if err != nil {
	//	fmt.Println(err)
	//	return
	//}
	//
	//log.Printf("[content: %s]", bytes)
	//
	//fileName = "/tmp/ww.js"
	//err = ioutil.WriteFile(fileName, []byte("Killall"), 0640)
	//if err != nil {
	//	log.Println(err)
	//}

	file, _ := os.Open(fileName)
	rd := bufio.NewReader(file)
	buf1 := make([]byte, 50)
	bytes, err := rd.Read(buf1)
	if err != nil {
		fmt.Println(err)
	}
	log.Println(string(bytes))

}
